package a11;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import cardGame.Player;

public class SortArray {

	List<Integer> LIST = new ArrayList<Integer>();
	
	public void SortArray () {
		Sort(this.LIST);
		System.out.println(LIST);
	}

	public void Sort(List<Integer> list) {
	
	for(int i=list.size() ; i>=0 ; i--)			//runs through for each object
		for( int j=0 ; j<i ; j++)				//runs through list, but 1 less object once that object has been sorted
			if(list.get(j) > list.get(j+1) )
				Collections.swap(list, j, j+1);
	}

}
